function oz_resamp_with_replacement,n

;+
; NAME:
;       OZ_RESAMP_WITH_REPLACEMENT
;
; PURPOSE:
;
;
; CALLING SEQUENCE:
;       OZ_RESAMP_WITH_REPLACEMENT(ISEED,N)
;
; INPUTS:
;       ISEED:
;
;       N:
;
; OUTPUTS:
;       Vector of length(n) giving resampled indices 
;
; MODIFICATION HISTORY:
;       Started by Rob Crain, Swinburne, 07-Mar-2010
;-

res = fix(n*randomu(iseed,n))
return,res
end
